package com.task.www.servlet;

import com.task.www.constant.ShowRegister;

import java.util.Scanner;

public class choose {
    public static int  getnumber(int a,int b){
            Scanner sc = new Scanner(System.in);
            int number = sc.nextInt();
            if(number<a||number>b){
                System.out.println("输入错误，请重新输入");
                number = getnumber( a, b);
            }
        return number;
    }


}
